package com.hb.印章类

fun main() {
    var xiaoluozi = Son.xiaoluozi()
    var xiaolv = Son.xiaolv()

    var houseList = listOf<Son>(xiaoluozi, xiaolv)
    for (animal in houseList){
        if (animal is Son.xiaolv){
            animal.sayHello()
        }
    }

}